package 遍历;

//随机点名

import java.util.Random;

public class test04 {
    public static void main(String[] args) {
        String [] name ={"杨佳乐","赵洪坤","刘冬雪","姚青远","戴辉",
                "高兴伟","董乃铭","魏钟利","刘虎鹏"};

        Random r =new Random();

        int index  = r.nextInt(name.length); //index索引

        System.out.println(name[index]);
    }
}


